package com.wgts.wgts.netmodle.resp;

import android.os.Parcel;
import android.os.Parcelable;

/*
 *
 *
 *   data:2018/10/49:08
 *
 *      收货地址列表
 */
public class ShippingAddressEntity implements Parcelable{
    public String addressId;
    public String userName;
    public String userPhone;
    public String province;
    public String city;
    public String area;
    public String details;
    public String addressState;

    public ShippingAddressEntity(){}

    protected ShippingAddressEntity(Parcel in) {
        addressId = in.readString();
        userName = in.readString();
        userPhone = in.readString();
        province = in.readString();
        city = in.readString();
        area = in.readString();
        details = in.readString();
        addressState = in.readString();
    }

    public static final Creator<ShippingAddressEntity> CREATOR = new Creator<ShippingAddressEntity>() {
        @Override
        public ShippingAddressEntity createFromParcel(Parcel in) {
            return new ShippingAddressEntity(in);
        }

        @Override
        public ShippingAddressEntity[] newArray(int size) {
            return new ShippingAddressEntity[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(addressId);
        dest.writeString(userName);
        dest.writeString(userPhone);
        dest.writeString(province);
        dest.writeString(city);
        dest.writeString(area);
        dest.writeString(details);
        dest.writeString(addressState);
    }
}
